package com.chao.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
@ToString
public class Department {

    @TableId
    private Integer dId;
    @NotBlank
    private String dName;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date dDate;


}
